import { createSSRApp } from 'vue';
import App from './App.vue';
import { createPinia } from 'pinia';
import { createUnistorage } from 'pinia-plugin-unistorage';
import uView from '@/uni_modules/vk-uview-ui';
import 'virtual:uno.css';

export function createApp() {
  const app = createSSRApp(App);
  const pinia = createPinia();
  pinia.use(createUnistorage());
  app.use(pinia);
  app.use(uView);
  return {
    app,
    pinia,
  };
}
